package com.isoft.systemprovidor.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.isoft.systemprovidor.entity.MyMessage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface MyMessageDao  extends BaseMapper<MyMessage> {
    /*查询我的审核的未读*/
    @Select("SELECT COUNT(READSTATE) FROM TMIM_SYSTEM.TB_MYMESSAGE WHERE READSTATE = 0 AND SYSUSERID = #{sysuserid};")
    public int UnreadNum(String sysuserid);
}
